<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>编辑地址</title>
		<meta name="keywords" content="KEYWORDS..." />
		<meta name="description" content="DESCRIPTION..." />
		<meta name="author" content="DeathGhost" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name='apple-touch-fullscreen' content='yes'>
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta name="format-detection" content="address=no">
		<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
		<link rel="stylesheet" type="text/css" href="__STATIC__/home/css/style.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/home/css/reset.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/home/layui/css/layui.css" />
		<script src="__STATIC__/home/js/jquery.js"></script>
		<!--支付倒计时-->
		<style type="text/css">
			.editAddress .editPreservation img{
				width: 70%;
			}
		</style>
	</head>

	<body style="background-color: #fff;">
		<div class="editAddress">
			<ul>
				{volist name="address_list" id="ad"}
					<li onclick="goToModify({$ad.id});">
						<div class="editTitle">
							<p>{$ad.name} {$ad.tell}</p>
							<p class="color000">{$ad.content}</p>
						</div>
							<span style="border:1px solid #999;padding:5px 15px;border-radius:10px;">{$ad.tag}</span>
							{if condition="$ad.is_default==1"}
								<span style="color:#ccc">默认地址</span>
							{/if}
						<div class="editPreservation">
							<span><img src="__STATIC__/home/img/edit.png"></span>
						</div>
					</li>
				{/volist}
				<p style="text-align: center;"><button onclick="goTo();" class="layui-btn" style="margin-top: 30px;">请添加收货地址</button></p>
			</ul>
		</div>
		{include file="../application/home/view/common/footer.html"}
	</body>
<script type="text/javascript">
	function goTo(){
		window.location.href="/home/own/add_address";
	}

	function goToModify(id){
		window.location.href="/home/own/modify_address?address_id="+id;
	}

</script>
</html>